package com.sdry.service.lz;

import java.util.List;

import com.sdry.model.lz.InventoryDetail;
import com.sdry.model.lz.InventoryOrder;
import com.sdry.model.lz.LzQueryCriteria;
import com.sdry.model.lz.Warehouse;
import com.sdry.model.zc.ZcSysUserEntity;

/**
 * @ClassName InventoryService
 * @Description 盘点管理
 * @Author lz
 * @Date 2019年3月26日 14:19:23
 * @Version 1.0
 */
public interface InventoryService {

	Long addInventoryOrder(InventoryOrder inventoryOrder);

	Long addInventoryOrderDetail(InventoryDetail detail);
	
	Long deleteInventoryOrderById(long id);

	Long deleteInventoryOrderDetailById(long id);

	Long updateInventoryOrderById(String id, String fieldName, String fieldValue);

	Long updateInventoryOrderDetailById(String mid, String fieldName,
			String fieldValue,String cid,String detailid);

	List<InventoryOrder> queryInventoryOrderCriteria(LzQueryCriteria criteria);

	int countInventoryOrderCriteria(LzQueryCriteria criteria);
	
	List<InventoryDetail> queryInventoryDetailCriteriaById(
			LzQueryCriteria criteria);

	int countInventoryDetailCriteriaById(LzQueryCriteria criteria);

	
	List<InventoryOrder> queryInventoryOrderCriteriaAndroid();

	List<InventoryDetail> queryInventoryDetailCriteriaByIdAndroid(
			String order_id);

	Long updateInventoryDetailAndroid(InventoryDetail inventoryDetail);

	List<Warehouse> queryAllWarehouseAndroid();
	
	//ljq 查询所有盘点单
	List<InventoryOrder> queryAllInventoryOrder();
	//ljq 根据盘点单查询所有详情
	List<InventoryDetail> queryInventoryDetailByOrder(String orderId);
	//ljq 根据盘点详情单ID查询
	InventoryDetail queryInventoryDetailById(long id);
	 Long queryInventorynum(String num);
	 
	 List<InventoryDetail>  queryDetailByid(long  id);
	/**   
	 * 查询所有员工
	 * @Title:queryAllUser   
	 * @return             
	 */
	List<ZcSysUserEntity> queryAllUser();
}